<%-- 
    Document   : principal
    Created on : 07/11/2012, 01:21:57 PM
    Author     : Izhar Gamaliel Hernandez Cruz
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/estilo.css" />
        <title>Main</title>
    </head>
    <body>
        <s:div cssClass="divBlancoMenor"></s:div>
        <s:div cssClass="contenidoAzul">
            <jsp:include page="/jsp/encabezado.jsp" flush="true" />
            <s:div cssClass="divBlanco"></s:div>
            <s:div cssClass="contenidoFormLogin"></s:div>
        </s:div>
        <s:div align="center">
            <s:form action="SelectComboKnkey">
                <div align="center">
                    <table border="1" class="listado2">
                        <tr style="background: lightskyblue">
                            <td>
                                KNKEY
                            </td>
                            <td>
                                Company Name
                            </td>
                            <td>
                                Status
                            </td>
                            <td>
                                Creation Date
                            </td>
                            <td>
                                Updated
                            </td>
                            <td>
                                Action
                            </td>
                        </tr>
                        <s:iterator value="listaTablaBeans">
                            <tr>
                                <td>
                                    <s:property value="knkey"/>
                                </td>
                                <td>
                                    <s:property value="companyname" />
                                </td>
                                <td>
                                    <s:property value="statusTrans" />
                                </td>
                                <td>
                                    <s:property value="creation" />
                                </td>
                                <td>
                                    <s:if test="updated == true">
                                        <img src="${pageContext.request.contextPath}/Imagenes/accept.png" />
                                    </s:if>
                                </td>
                                <td>
                                    <s:if test="%{#session.usuarioSession.Tran == true}">
                                        <s:a cssClass="buttonTablaAssign" action="SelectComboKnkey">
                                            <input type="button" value="Detail"/>
                                            <s:param name="knkey2" value="knkey"></s:param>
                                            <s:param name="companyname" value="companyname"></s:param>
                                            <s:param value="false" name="exportar"/>
                                        </s:a>
                                    </s:if>
                                    <s:elseif test="%{#session.usuarioSession.Impl == true}">
                                        <s:a cssClass="buttonTablaAssign" action="SelectComboKnkey1">
                                            <input type="button" value="Detail"/>
                                            <s:param name="knkey2" value="knkey"></s:param>
                                            <s:param name="companyname" value="companyname"></s:param>
                                            <s:param value="false" name="exportar"/>
                                        </s:a>
                                    </s:elseif>
                                    <s:elseif test="%{#session.usuarioSession.COP == true}">
                                        <s:a cssClass="buttonTablaAssign" action="SelectComboKnkey2">
                                            <input type="button" value="Detail"/>
                                            <s:param name="knkey2" value="knkey"></s:param>
                                            <s:param name="companyname" value="companyname"></s:param>
                                            <s:param value="false" name="exportar"/>
                                        </s:a>
                                    </s:elseif>
                                </td>
                            </tr>
                        </s:iterator>
                    </table>
                    </br>
                    </br>
                    </br>
                </div>

                <table align="center"><tr><td>
                            <%--  <select onChange="populateKnkeys(this)" name="comboKnkey" id="comboKnkeyID" > 
                              <option value="-1">ComboBox1</option> 
                              <option value="KnKey1">KnKey1</option> 
                              <option value="joinusertransition.knkey"></option> 

                             </select> --%>

                            <%--<s:select list="transitionBeanArray" listValue="Status" listKey="Status" name="knkey" />--%>
                        </td></tr>
                </table> 
                <%--<s:submit align ="center" value="Load Selected KNKey"  />--%>                                                                       
            </s:form>
        </s:div>

        <s:div cssClass="divBlanco"></s:div>
        <s:div cssClass="contenidoAzul">
            <jsp:include page="/jsp/pie.jsp" flush="true" />
        </s:div>
    </body>
</html>
